
/*********************************************************************************

  *Copyright(C),山东大学电子设计实验室

  *Author:  张延峰

**********************************************************************************/

#ifndef __TIVA_SYS_H
#define __TIVA_SYS_H

//C语言标准库
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>

//Tivaware函数库
#include <sysctl.h>
#include "hw_types.h"
#include "hw_memmap.h"
#include "sysctl.h"
//中断相关头文件包含
#include "hw_ints.h"
#include "interrupt.h"
//GPIO相关头文件包含
#include "pin_map.h"
#include "gpio.h"
#include "hw_gpio.h"
//UART相关头文件包含
#include "hw_uart.h"
#include "uart.h"
#include "uartstdio.h"
//PWM相关头文件包含
#include "hw_pwm.h"
#include "pwm.h"
//ADC相关头文件包含
#include "hw_adc.h"
#include "adc.h"
//IIC相关头文件包含
#include "hw_i2c.h"
#include "i2c.h"
//SPI相关头文件包含
#include "hw_ssi.h"
#include "ssi.h"
//QEI相关头文件包含
#include "hw_qei.h"
#include "qei.h"
//定时器相关头文件包含
#include "hw_timer.h"
#include "timer.h"
//QEI相关头文件包含
#include "hw_qei.h"
#include "qei.h"


//用户代码相关头文件包含
#include "led.h"
#include "usrt_hard.h"
#include "pwm_hard.h"
#include "adc_hard.h"
#include "iic_hard.h"
#include "spi_hard.h"
//#include "mpu6050.h"
//#include "inv_mpu.h"
#include "timer_hard.h"
#include "oled.h"
#include "task.h"
#include "encoder.h"
#include "includes.h"
//中断优先级定义
#define  USER_INT0  0x00
#define  USER_INT1  0x20
#define  USER_INT2  0x40
#define  USER_INT3  0x60
#define  USER_INT4  0x80
#define  USER_INT5  0xA0

//延时函数定义
#define delayms(xms)	SysCtlDelay(xms*(80000/3)) /*ms级延时*/
#define delayus(xus)	SysCtlDelay(xus*(80/3)) /*ms级延时*/


#endif
